import request from "@/utils/request"


export const getNPPageApi = (page, pageSize, name) => request.get(`/nursingProject?page=${page}&pageSize=${pageSize}&name=${name}`)


export const getNPByIdApi = (id) => request.get(`/nursingProject/${id}`)


export const addNPApi = (data) => request.post('/nursingProject', data)


export const updateNPApi = (data) => request.put(`/nursingProject`, data)


export const deleteAllNPApi = (ids) => request.delete(`/nursingProject?ids=${ids}`)